package io.renren.modules.workflow.enums;

/**
 * @Desc 流程状态枚举
 * @Author landlord
 * @Date 2021/7/30 15:40
 */
public enum  ActBusWorkFlowStatusEnum {
    UNKNOWN(-1,"未知"),STAGING(0, "暂存"),INREVIEW(1, "审核中"),REJECTED(2, "审批驳回"),PASS(3, "审批通过"),ENDOFTHEARTIFICIAL(4,"人工结束"),CLOSE(5,"取消流程");
    // 成员变量
    private int key;
    private String value;
    // 构造方法
    private ActBusWorkFlowStatusEnum(int key, String value) {
        this.key = key;
        this.value = value;
    }

    // 普通方法
    public static String getName(int key) {
        for (ActBusWorkFlowStatusEnum fs : ActBusWorkFlowStatusEnum.values()) {
            if (fs.getKey() == key) {
                return fs.value;
            }
        }
        return null;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


}
